﻿<%@ Page Title="" Language="C#" MasterPageFile="~/aboutus/AboutusMasterPage.master" AutoEventWireup="true" CodeBehind="ad_etc.aspx.cs" Inherits="Com.Web.coffinegurunaru.aboutus.ad_etc" %>
<%@ Register TagPrefix="UC" TagName="Paging" Src="~/aboutus/usercontrol/paging.ascx" %>
<%@ Import Namespace="Com.Library.DB.Advertise" %>
<asp:Content ID="Content1" ContentPlaceHolderID="Head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="Content" runat="server">
	      <table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td height="33">&nbsp;</td>
          </tr>
          <tr>
            <td><img src="/images/aboutus/tit_03.gif" width="343" height="50"></td>
          </tr>
          <tr>
            <td height="30">&nbsp;</td>
          </tr>
          <tr>
            <td><!--tab -->
              <table border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td><a href="/aboutus/ad_cf.aspx"><img src="/images/aboutus/ad_tab01.gif" width="104" height="17"></a></td>
                <td><a href="/aboutus/ad_ppl.aspx"><img src="/images/aboutus/ad_tab02.gif" width="106" height="17"></a></td>
                <td><a href="/aboutus/ad_newspaper.aspx"><img src="/images/aboutus/ad_tab03.gif" width="106" height="17"></a></td>
                <td><a href="/aboutus/ad_etc.aspx"><img src="/images/aboutus/ad_tab04o.gif" width="106" height="17"></a></td>
                <td><img src="/images/aboutus/ad_tab_bg.gif" width="161" height="17"></td>
              </tr>
            </table>
              <!--tab 끝 --></td>
          </tr>
          <tr>
            <td height="30">&nbsp;</td>
          </tr>
          <tr>
            <td><!--내용 보기-->
              <table width="100%" border="0" cellspacing="0" cellpadding="0">
<% for (int i = 0; i < AdvertiseList.Count; i ++ ) { %>
<%		if ( i % 4 == 0 ) { %>
              <tr>
<%		} %>
                <td width="25%"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                  <tr>
                    <td align="center"><a href="<%=GetViewURL(AdvertiseList[i].AdvertiseNo) %>" class="small_gray"><img src="<%=AdvertiseList[i].ThumbURL %>" width="131" height="182"></a></td>
                  </tr>
                  <tr>
                    <td height="30" align="center"><a href="<%=GetViewURL(AdvertiseList[i].AdvertiseNo) %>" class="small_gray"><%=AdvertiseList[i].ListTitle.HTMLEncode() %></a></td>
                  </tr>
                </table></td>
<%		if ( i % 4 == 3 ) { %>
              </tr>
<%			if ( AdvertiseList.Count > 4 && i != 7) {  %>
			   <tr>
                <td height="30">&nbsp;</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
              </tr>
<%			} %>
<%		} %>

<% } %>
<%	if (AdvertiseList.Count % 4 != 0 ) { %>
<%		for( int i = 0; i<=AdvertiseList.Count%4; i++ ) {%>
				<td width="25%">&nbsp;</td>
<%		} %>
              </tr>
<%	} %>
            </table>
              <!--내용 보기 끝 -->
              <table width="100%" border="0" cellspacing="0" cellpadding="0">
                <tr>
                  <td height="25">&nbsp;</td>
                </tr>
                <tr>
                  <td height="35" align="center"><UC:Paging ID="UC_Paging" runat="server" /></td>
                </tr>
            </table></td>
          </tr>
        </table>


</asp:Content>
